package com.suse.warmstill.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Set;

/**
 * @author 黄靖
 * @author 2022-10-20 17:13
 * description:
 **/
@Data
@ApiModel("菜单前后端传输模型")
public class MenuVo extends BaseVo {
    private Long id;

    @NotBlank(message = "菜单名不能为空")
    @ApiModelProperty("模块名称")
    private String name;

    @NotNull(message = "路径不能为空")
    @ApiModelProperty("请求路径")
    private String path;

    @ApiModelProperty("重定向路由")
    private String redirect;

    @ApiModelProperty("是否隐藏权限")
    private Integer isHidden;


    @ApiModelProperty("模块的父模块")
    private Integer parentId;

    @ApiModelProperty("和name一致")
    private String title;

    /*@ApiModelProperty("子菜单")
    private Set<MenuVo> children;*/
}
